package jp.oesf.malfoy.rss;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class RssReceiver extends BroadcastReceiver{
	
	private final String TAG = "RssReceiver";

	@Override
	public void onReceive(Context context, Intent intent) {

		String action = intent.getAction();
		
		if (action.equals(RssConst.RSS_MSG_ACTION)) {			
			String message = intent.getStringExtra(RssConst.RSS_RECEIVER_TAG);
			Toast.makeText(context, TAG + " : " + message, Toast.LENGTH_LONG).show();

		}else if (action.equals(RssConst.RSS_ACTION2)) {
			//nothing
		}
	}
}
